import request from '@/utils/request.js';
//获取列表
export function selectList(query){
    return request({
        url:'/facultyAwards/selectList',
        method:'get',
        params:query
    })
}

export function selectAllFaculty(){
    return request({
        url:'/facultyAwards/selectAllFaculty',
        method:'get'
    })
}

export function selectAllAwards(){
    return request({
        url:'/facultyAwards/selectAllAwards',
        method:'get'
    })
}
export function checkNum(awardsId,facultyId,num,str){
    return request({
        url:'/facultyAwards/checkNum',
        method:'get',
        params:{
            awardsId:awardsId,
            facultyId:facultyId,
            num:num,
            str:str
        }
    })
}

export function add(data){
    return request({
        url: '/facultyAwards/add',
        method:'post',
        data: data
    })
}

 export function update(data){
    return request({
        url:'/facultyAwards/update',
        method:'put',
        data:data
    })
}